﻿using SqlSugar;

namespace SqlsugarBlog.Model
{
    public class BlogNews:BaseId
    {

        [SugarColumn(ColumnDataType = "nvarchar(50)")]//列类型为nvarchar，能较好的支持中文
        public string Title { get; set; }

        public string? Content { get; set; }
        public DateTime Time { get; set; }
        public int BrowseCount { get; set; }
        public int LikeCount { get; set; }

        public int TypeId { get; set; }
        public int WriterId { get; set; }
        [SugarColumn(IsIgnore = true)]//不映射到数据库
        public BlogType TypeInfo { get; set; }
        [SugarColumn(IsIgnore = true)]//不映射到数据库
        public WritterInfo WriterInfo { get; set; }
    }
}
